#ifndef DELAY_H
#define DELAY_H

#include <QObject>
#include <QEventLoop>
#include <QTimer>
#include <functional>

class Delay : public QObject {
    Q_OBJECT

public:
    explicit Delay(QObject *parent = nullptr);

    static void waitForWorkComplete(int intervalTime, std::function<bool()> isPlcResetComplete);
    static void waitForTime(int finishTime, int intervalTime = 1000);
};

#endif // DELAY_H
